package io.lemur.common.entity.json;

import java.io.Serializable;

/**
 * JSON 基础返回类
 * 
 * @author JueYue
 * @date 2014年5月13日 下午4:55:29
 */
public class JsonEntity implements Serializable {

    private static final long serialVersionUID = 5831231522873089422L;
    /**
     * 是否成功
     */
    private boolean           success;
    /**
     * 消息
     */
    private String            msg;
    /**
     * 返回对象
     */
    private Object            result;

    public JsonEntity() {

    }

    public JsonEntity(boolean success) {
        this.success = success;
    }

    public JsonEntity(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public JsonEntity(boolean success, String msg, Object result) {
        this.success = success;
        this.msg = msg;
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public Object getResult() {
        return result;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

}
